package com.aop;

import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2016/9/21.
 */
@Component
public class GreetingImpl implements Greeting {
    @Override
    public void say(String name) {
        System.out.println("Hello! "+name);
    }

    public void goodMorning(String name){
        System.out.println("Good Morning " + name);
    }
    public void goodNight(String name){
        System.out.println("Good Night " + name);
    }
}
